#include <stdio.h>
const int MAX = 3;
int main()
{
    int var[] = {10, 100, 1000};
    int *ptr[MAX];
    for (int i = 0; i < MAX; i++)
    {
        printf("The address of var[%d] is %p\n", i, &var[i]);
        ptr[i] = &var[i]; /* 赋值为整数的地址 */
    }
    for (int i = 0; i < MAX; i++)
    {
        printf("The value of var[%d] = %d\n", i, *ptr[i]);
        printf("The address of var[%d] is %p\n", i, ptr[i]);
    }
    return 0;
}
